cmake_minimum_required(VERSION 3.5)
project(utils_lib)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)
file(GLOB SRC_UTILS_LIB
  "${PROJECT_SOURCE_DIR}/*.cc"
  "${PROJECT_SOURCE_DIR}/thread/*.cc"
  "${PROJECT_SOURCE_DIR}/registerer/*.cc"
  "${PROJECT_SOURCE_DIR}/config_manager/*.cc"
)
add_library(${FUSION_LIB_NAME_PREFIX}_${PROJECT_NAME} SHARED ${SRC_UTILS_LIB})

target_include_directories(${FUSION_LIB_NAME_PREFIX}_${PROJECT_NAME}
  PUBLIC
	${FUSION_INCLUDE_DIRS}
)

target_link_libraries(${FUSION_LIB_NAME_PREFIX}_${PROJECT_NAME} 
    PUBLIC
    gflags
    ${FUSION_LINKER_LIBS}
)

list(APPEND FUSION_LINKER_LIBS ${FUSION_LIB_NAME_PREFIX}_${PROJECT_NAME})
set(FUSION_LINKER_LIBS ${FUSION_LINKER_LIBS} PARENT_SCOPE)
